<?php

namespace App\Models;


class DemoModel extends BaseModel
{
    const TABLE_NAME = 'demo';

    /**
     * 获取对象
     *
     * @param int $id
     * @param null $fields
     *
     * @return mixed
     */
    public function getOne(int $id, $fields = null)
    {
        return $this->find($id, $fields);
    }
}
